export { editorPath } from 'Configs/common';

export const enum MainRouterPathName {
    LOGIN = '/login',
    ADMIN = '/admin',
    MAIN = '/main',
}

export const ModuleRouterPathType = {
    NEW: 'new',
    DETAIL: 'detail',
    ATTR_INFO: 'attr_info',
    UPDATE: 'update',
};

export const enum ModuleRouterPathName {
    /* frame */
    LOGIN = 'login',

    /* admin */
    USER = 'user',
    ROLE = 'role',
    DEPARTMENT = 'department',
    MENU = 'menu',
}

export const RouterPathName = {
    /* frame */
    LOGIN: `/${ModuleRouterPathName.LOGIN}`,

    /* admin */
    USER: `${MainRouterPathName.MAIN}/${ModuleRouterPathName.USER}`,
    ROLE: `${MainRouterPathName.MAIN}/${ModuleRouterPathName.ROLE}`,
    DEPARTMENT: `${MainRouterPathName.MAIN}/${ModuleRouterPathName.DEPARTMENT}`,
    MENU: `${MainRouterPathName.MAIN}/${ModuleRouterPathName.MENU}`,
};
